package com.pt.dto.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
@ApiModel(description = "种子上传请求")
public class TorrentUploadRequest {
    @ApiModelProperty(value = "种子标题", required = true)
    @NotBlank(message = "标题不能为空")
    @Size(max = 255, message = "标题长度不能超过255个字符")
    private String title;

    @ApiModelProperty(value = "种子描述", required = true)
    @NotBlank(message = "描述不能为空")
    private String description;

    @ApiModelProperty(value = "分类ID", required = true)
    @NotNull(message = "分类不能为空")
    private Integer categoryId;

    @ApiModelProperty(value = "子分类ID")
    private Integer subCategoryId;

    @ApiModelProperty(value = "种子文件", required = true)
    @NotNull(message = "种子文件不能为空")
    private MultipartFile file;

    private Integer promotionStatus = 0;

    private String promotionEndTime;
} 